home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / loader / initrd / initrd 32493 / etc / udev / rules.d / 60-persistent-input.rules < prev    next >
Text File  |  2006-11-29  |  1KB  |  30 lines

  1. ACTION!="add", GOTO="persistent_input_end"
  2. SUBSYSTEM!="input", GOTO="persistent_input_end"
  3. KERNEL=="input[0-9]*", GOTO="persistent_input_end"
  4.  
  5. # usb devices
  6. SUBSYSTEMS=="usb", IMPORT{program}="usb_id -x"
  7. SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="01", ENV{ID_CLASS}="kbd"
  8. SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="02", ENV{ID_CLASS}="mouse"
  9.  
  10. # other devices
  11. DRIVERS=="pcspkr", ENV{ID_CLASS}="spkr"
  12. DRIVERS=="atkbd", ENV{ID_CLASS}="kbd"
  13. DRIVERS=="psmouse", ENV{ID_CLASS}="mouse"
  14. ATTRS{name}=="*dvb*|*DVB*|* IR *", ENV{ID_CLASS}="ir"
  15. ATTRS{modalias}=="input:*-*a[068],*|input:*-*a*,[68],*m*", ATTRS{modalias}!="input:*-*k*14A,*r*", ENV{ID_CLASS}="joystick"
  16.  
  17. ENV{ID_SERIAL}=="", ENV{ID_SERIAL}="noserial"
  18.  
  19. # by-id links
  20. KERNEL=="mouse*", ENV{ID_BUS}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_CLASS}"
  21. KERNEL=="event*", ENV{ID_BUS}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-$env{ID_CLASS}"
  22.  
  23. # by-path
  24. IMPORT{program}="path_id %p"
  25. ENV{ID_PATH}=="?*", KERNEL=="mouse*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}"
  26. ENV{ID_PATH}=="?*", KERNEL=="event*", SYMLINK+="input/by-path/$env{ID_PATH}-event-$env{ID_CLASS}"
  27.  
  28. LABEL="persistent_input_end"
  29.  
  30.